package com.vehicle.service;

import com.vehicle.bean.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import com.vehicle.vo.FilterVO;
import com.vehicle.vo.ListCategoryVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 校园车辆管理系统
 * @since 2023-04-21
 */
@Service
public interface CategoryService extends IService<Category> {

    public Category addCategoryByName(String ip,Integer id,String categoryName);

    public boolean deleteCategoryById(String ip,Integer id,Integer categoryId);

    public Integer getIdByName(String name);

    public List<FilterVO> getAllCategoryName();
    public ListCategoryVO getAllCategory(Integer page, Integer size);

    public String getNameById(Integer id);

}
